<!DOCTYPE html>
<html>
  <style>
    :-moz-any(input, textarea) {
      font: -moz-list;
      font-family: mono;
      font-style: italic;
      color: blue;
      word-spacing: 5px;
      text-shadow: 1px 1px 1px red;
    }
  </style>
  <body>
    <input value='foo bar'>
    <textarea>foo bar</textarea>
    <input value='bar foo'>
    <textarea>bar foo</textarea>
  </body>
</html>
